package com.example.lotterysystem.common.errorcode;

public interface ServiceErrorCodeConstants {
    //---------人员模块错误码-----------
    ErrorCode REGISTER_INFO_IS_EMPTY = new ErrorCode(100, "注册信息为空");
    ErrorCode MAIL_ERROR = new ErrorCode(101, "邮箱错误");
    ErrorCode PHONE_NUM_ERROR = new ErrorCode(102, "手机号错误");
    ErrorCode IDENTITY_ERROR = new ErrorCode(103, "身份信息错误, 您不是管理员");
    ErrorCode PASSWORD_IS_EMPTY = new ErrorCode(104, "密码为空");
    ErrorCode PASSWORD_LENGTH_ERROR = new ErrorCode(112, "密码长度不正确");
    ErrorCode PASSWORD_ERROR = new ErrorCode(105, "密码错误");
    ErrorCode MAIL_USED = new ErrorCode(106, "邮箱被使用了");
    ErrorCode PHONE_NUM_USED = new ErrorCode(107, "手机号被使用了");
    ErrorCode LOGIN_INFO_NOT_EXISTS = new ErrorCode(108, "登录信息不存在");
    ErrorCode LOGIN_NOT_EXISTS = new ErrorCode(109, "登录信息错误");
    ErrorCode USER_NOT_EXISTS = new ErrorCode(110, "用户信息不存在");
    ErrorCode VERIFICATION_CODE_ERROR = new ErrorCode(111, "验证码错误");
    //---------活动模块错误码-----------
    ErrorCode CREATE_ACTIVITY_IS_EMPTY = new ErrorCode(300, "创建活动信息为空");
    ErrorCode ACTIVITY_USER_ERROR = new ErrorCode(301, "活动关联人员异常");
    ErrorCode ACTIVITY_PRIZE_ERROR = new ErrorCode(302, "活动关联奖品异常");
    ErrorCode ACTIVITY_AMOUNT_ERROR = new ErrorCode(303, "人员数量应大于奖品数量");
    ErrorCode ACTIVITY_PRICE_TIERS_ERROR = new ErrorCode(304, "活动奖品等级错误");

    //---------奖品模块错误码-----------
    //---------抽奖模块错误码-----------
    ErrorCode ACTIVITY_OR_PRICE_IS_EMPTY = new ErrorCode(400, "抽奖活动或关联奖品不存在");
    ErrorCode ACTIVITY_COMPLETED = new ErrorCode(401, "抽奖活动已完成");
    ErrorCode PRIZE_COMPLETED = new ErrorCode(402, "当前奖品已经被抽取");
    ErrorCode WINNER_COUNT_ERROR = new ErrorCode(403, "奖品数和中奖人数不一致");
    ErrorCode ACTIVITY_STATUS_CONVERT_ERROR = new ErrorCode(404, "活动状态转换失败");
    ErrorCode ACTIVITY_CACHE_IS_EMPTY = new ErrorCode(405, "缓存活动的活动id为空");
    //---------图片错误码-----------
    ErrorCode PIC_UPLOAD_ERROR = new ErrorCode(500, "图片上传失败");

}
